.class Lcom/example/m6wmr/ReportShop$3;
.super Ljava/lang/Object;
.source "ReportShop.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/ReportShop;->commitData()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/ReportShop;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/ReportShop;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/ReportShop$3;->this$0:Lcom/example/m6wmr/ReportShop;

    .line 327
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 8

    .prologue
    .line 334
    new-instance v5, Ljava/lang/StringBuilder;

    iget-object v6, p0, Lcom/example/m6wmr/ReportShop$3;->this$0:Lcom/example/m6wmr/ReportShop;

    # getter for: Lcom/example/m6wmr/ReportShop;->m:Lmyapp/MyApp;
    invoke-static {v6}, Lcom/example/m6wmr/ReportShop;->access$5(Lcom/example/m6wmr/ReportShop;)Lmyapp/MyApp;

    move-result-object v6

    invoke-virtual {v6}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v6, "/index.php?ctrl=app&action=saveshopreport&"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    .line 335
    const-string v6, "typeidContent="

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget-object v6, p0, Lcom/example/m6wmr/ReportShop$3;->this$0:Lcom/example/m6wmr/ReportShop;

    # getter for: Lcom/example/m6wmr/ReportShop;->typeCount:Ljava/lang/String;
    invoke-static {v6}, Lcom/example/m6wmr/ReportShop;->access$7(Lcom/example/m6wmr/ReportShop;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "&shopname="

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget-object v6, p0, Lcom/example/m6wmr/ReportShop$3;->this$0:Lcom/example/m6wmr/ReportShop;

    iget-object v6, v6, Lcom/example/m6wmr/ReportShop;->shopname:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "&content="

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget-object v6, p0, Lcom/example/m6wmr/ReportShop$3;->this$0:Lcom/example/m6wmr/ReportShop;

    iget-object v6, v6, Lcom/example/m6wmr/ReportShop;->reprotString:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "&phone="

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget-object v6, p0, Lcom/example/m6wmr/ReportShop$3;->this$0:Lcom/example/m6wmr/ReportShop;

    iget-object v6, v6, Lcom/example/m6wmr/ReportShop;->phone:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "&datatype=json"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    .line 334
    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 337
    .local v4, "url":Ljava/lang/String;
    iget-object v5, p0, Lcom/example/m6wmr/ReportShop$3;->this$0:Lcom/example/m6wmr/ReportShop;

    # getter for: Lcom/example/m6wmr/ReportShop;->m:Lmyapp/MyApp;
    invoke-static {v5}, Lcom/example/m6wmr/ReportShop;->access$5(Lcom/example/m6wmr/ReportShop;)Lmyapp/MyApp;

    move-result-object v5

    invoke-static {v4, v5}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v3

    .line 339
    .local v3, "str":Ljava/lang/String;
    const-string v5, "\u63d0\u4ea4\u6570\u636e\u8fd4\u56de--------"

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v7, "|||"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v5, v6}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 345
    :try_start_0
    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, v3}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 351
    .local v2, "object":Lorg/json/JSONObject;
    const-string v5, "msg"

    invoke-virtual {v2, v5}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_0

    .line 367
    .end local v2    # "object":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 355
    .restart local v2    # "object":Lorg/json/JSONObject;
    :cond_0
    new-instance v1, Landroid/os/Message;

    invoke-direct {v1}, Landroid/os/Message;-><init>()V

    .line 357
    .local v1, "message":Landroid/os/Message;
    const/4 v5, 0x2

    iput v5, v1, Landroid/os/Message;->arg1:I

    .line 358
    const-string v5, "msg"

    invoke-virtual {v2, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    iput-object v5, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 360
    iget-object v5, p0, Lcom/example/m6wmr/ReportShop$3;->this$0:Lcom/example/m6wmr/ReportShop;

    # getter for: Lcom/example/m6wmr/ReportShop;->handler:Landroid/os/Handler;
    invoke-static {v5}, Lcom/example/m6wmr/ReportShop;->access$6(Lcom/example/m6wmr/ReportShop;)Landroid/os/Handler;

    move-result-object v5

    invoke-virtual {v5, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 362
    .end local v1    # "message":Landroid/os/Message;
    .end local v2    # "object":Lorg/json/JSONObject;
    :catch_0
    move-exception v0

    .line 364
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0
.end method
